public class MyObject {
    public static long staticVar;
    public long instanceVar;

    public static void main(String[] args) {
        long x = 32768;
        MyObject myObj = new MyObject();
        MyObject.staticVar = x;
        x = MyObject.staticVar;
        myObj.instanceVar = x;
        x = myObj.instanceVar;
        Object obj = myObj;
        if (obj instanceof MyObject) {
            myObj = (MyObject) obj;
            System.out.println(myObj.instanceVar);
        }
    }
}